<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'msg_get_list.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link href="css/space.css" rel="stylesheet" type="text/css">

</head>
<body>
	<div class="all">
		<div class="bodyge-left">
			<div class="bodyge-left-a1"><span class="font-b">收件箱</span></div>
			<table class="ma-tab" cellspacing="0px" cellpadding="0px">
				<tr class="ma-tab-tr_a">
					<td style="width:120px; text-align:left; padding-left:30px;">发件人</td>
					<td style="width:270px; text-align:left; padding-left:10px;">标题</td>
					<td width="100px">时间</td>
					<td width="100px">操作</td>
				</tr>
				<tr height="5px"></tr>
				<c:forEach var="m" items="${requestScope.pages.records}">
				<tr class="ma-tab-tr_b">
					<td>
						<span class="messagespan_title">
							<%-- 没有读过的信息图片 --%>
							<c:if test="${m.messageType == 0}"><img src="images/ico_mail1.gif" align="top" border=0 /></c:if>
							<%-- 已经读过的信息图片 --%>
							<c:if test="${m.messageType == 1}"><img src="images/ico_mail3.gif" align="top" border=0 /></c:if>
							<a class="delete" href="front/msg_detail?id=${m.messageId}&status=get">${m.sender }</a>
						</span>
					</td>
					<td>${m.title }</td>
					<td align="center">${m.sendDate }</td>
					<td align="center">
						<a class="delete" href="front/msg_detail?id=${m.messageId}&status=get">查看</a>
						|
						<a class="delete" href="front/msg_del?id=${m.messageId}&status=get">删除</a>
					</td>
				</tr>
				</c:forEach>
			</table>
		</div>
	</div>
</body>
</html>
